#ifndef T_PRINTF_H
#define T_PRINTF_H

#include <stdarg.h>
#include "Arduino.h"

int t_sprintf_P(char *s, const char nt_f, const char *fmt, ...);
int t_printf_P(const char *fmt, ...);
int t_vprintf_P(char *s, int n, const char *fmt, va_list ap);
int t_vprintf_at_P(const char *fmt, va_list ap);

#define printf(fmt, ...)		t_printf_P((fmt), ## __VA_ARGS__)
#define sprintf(p, fmt, ...)	t_sprintf_P((p), 1,(fmt), ## __VA_ARGS__)

#define t_putstr				Serial.print
#define t_putchar				Serial.print

#endif /* T_PRINTF_H */
